/* Main Container */
.scontainer {
    max-width: 690px;
    margin: auto;
    padding: 10px;
    background: #29ae0012;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Headings and Buttons inside the section */
.head-feat {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    flex-direction: row;
    align-content: stretch;
    align-items: baseline;
}

.browse-headings {
    text-align: center;
}

.browse-heading {
    font-size: 1.1rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 10px;
    display: none; /* Initially hidden */
}

#browsevenuesHeading {
    margin-bottom: 0px;
}

.invbtn, .rentbtn {
    background: linear-gradient(90deg, #28a745, #4caf50, rgb(77 254 1), #4caf50, #28a745);
    background-size: 300% 100%;
    color: white;
    font-size: 15px;
    padding: 3px 8px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3sease-in-out !important;
    animation: smoothHighlight 20s infinite linear !important;
}

@keyframes smoothHighlight {
    0% {
        background-position: 300% 0;
    }
    100% {
        background-position: -300% 0;
    }
}

/* Main Tab Buttons (Buy/Rent) */
.stab-buttons {
    display: flex;
    justify-content: center;
    gap: 5px;
    overflow: auto;
    padding: 5px 0px 5px;
    scroll-snap-type: x mandatory;
}

.stab-buttons::-webkit-scrollbar {
    height: 3px;
}

.stab-buttons::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 10px;
}

.stab-button {
    background: #ffffff;
    border: 1px solid #28a745;
    border-radius: 26px;
    cursor: pointer;
    transition: background 0.3sease, color 0.3sease;
    color: #049907;
    padding: 10px;
    text-align: center;
    padding-block: 5px;
}

.stab-button.active {
    background: #28a745;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Specific button styles for rounded corners */
.buy-tab {
    border-radius: 15px 0px 0px 15px;
    margin-right: -5px;
}

.rent-tab {
    border-radius: 0px 15px 15px 0px;
}
/* Specific button styles for rounded corners */
.used-tab {
    border-radius: 15px 0px 0px 15px;
    margin-right: -5px;
}

.new-tab {
    border-radius: 0px 15px 15px 0px;
}

/* Sub Tab Buttons */
.ssubtab-buttons {
    justify-content: center;
    display: flex;
    text-align: center;
    gap: 6px;
    margin: 9px 1px;
    padding: 0px 2px 10px;
    overflow: auto;
    scroll-snap-type: x mandatory;
    position: relative;
}

.ssubtab-buttons::-webkit-scrollbar {
    height: 3px;
}

.ssubtab-buttons::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 10px;
}

.ssubtab-buttons button:first-child {
    margin-left: 0;
}

.sub-tab-btn {
    background: #61CE702E;
    border-radius: 26px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    min-width: 85px;
    text-align: center;
    padding-block: 5px;
}

.sub-tab-btn.active {
    background: #28a745;
    color: #ffffff;
}

/* Sub-Sub Tab Buttons */
.ssubsubtab-buttons {
    justify-content: center;
    display: flex !important;
    text-align: center;
    gap: 6px;
    margin: 9px 1px;
    padding: 0px 2px 10px;
    overflow: auto;
    scroll-snap-type: x mandatory;
    position: relative;
}

.ssubsubtab-buttons::-webkit-scrollbar {
    height: 3px;
}

.ssubsubtab-buttons::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 10px;
}

.ssubsubtab-buttons button:first-child {
    margin-left: 0;
}

.sub-sub-tab-btn {
    background: #61CE702E;
    border-radius: 26px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    min-width: 85px;
    text-align: center;
    padding-block: 5px;
}

.sub-sub-tab-btn.active {
    background: #28a745;
    color: #ffffff;
}


/* Content Grid and Items */
.stab-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    height: auto;
    transition: opacity 0.3s ease-in-out;
}

.stab-content.fade-out {
    opacity: 0;
}

.stab-content.fade-in {
    opacity: 1;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100px;
    width: 100%;
    background: #ffffff;
    font-weight: 500;
    border-radius: 8px;
    border: 2px solid #28a745;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    cursor: pointer;
    padding: 3px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    background-color: #f9f9f9;
    font-size: 14px;
    max-width: 150px;
}

.tab-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    background: #e8f5e9;
}

.tab-item a {
    text-decoration: none;
    color: #28a745;
    font-weight: 500;
}

.tab-item p {
    margin: 0;
    font-size: clamp(0.6rem, 2vw, 1rem);
    line-height: 1.2;
}

.secondary-text {
    color: #00b052;
}

.tab-item.show-more {
    background-color: #28a745;
    color: white;
    font-weight: bold;
    border: 2px solid #28a745;
}


/* Responsive Styles */
@media screen and (max-width: 767px) {
    .stab-content .tab-item {
        height: 72px;
        font-size: 0.7rem;
    }
}

@media screen and (max-width: 583px) {
    .ssubtab-buttons,
    .ssubsubtab-buttons {
        justify-content: unset !important;
    }
}

@media screen and (min-width: 583px) {
    .stab-buttons {
        justify-content: center !important;
    }
}

@media screen and (max-width: 340px) {
    .stab-content {
        grid-template-columns: repeat(3, 1fr);
    }
}



/* =================================================================== */
/* 1. General & Wrapper Styles (For Listing Feed)
/* =================================================================== */
.i-section.listing-feed {
    padding-top: 15px !important;
    padding-bottom: 0 !important;
}

.i-section.listing-feed .section-body {
    background: linear-gradient(180deg, #e9f5e9, transparent);
    border-radius: 20px;
    margin-top: -26px;
    padding: 9px 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Horizontal scroll wrapper for listings */
.results-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px; /* Space between cards */
    padding-bottom: 15px; /* Space for scrollbar */
    padding-left: 5px;
    scrollbar-width: none; /* For Firefox */
        margin-top: 20px;
}

.results-wrapper::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, etc. */
}

/* =================================================================== */
/* 2. Listing Card (lf-item) Main Structure
/* =================================================================== */

/* Main card container */
.lf-item-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* Important for border-radius on children */
    display: flex;
    flex-direction: column;
    height: 100%; /* Make sure cards are of same height */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.lf-item-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* This is the individual card inside the horizontal scroll */
.grid-item {
    flex: 0 0 260px; /* Card width */
    scroll-snap-align: start;
    width: 260px;
}

.lf-item {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows footer to stick to bottom */
}

/* Hide the default overlay */
.lf-item .overlay {
    display: none;
}

/* =================================================================== */
/* 3. Card Image & Head Badges
/* =================================================================== */

.lf-background {
    height: 150px; /* Increased image height */
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #eee;
}

.lf-head {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.lf-head-btn {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

/* Promoted badge style */
.lf-head-btn.ad-badge {
    background-color: #ffc107; /* A nice gold color */
    color: #333;
}

.lf-head-btn.ad-badge .icon-flash {
    margin-right: 4px;
}

/* =================================================================== */
/* 4. Card Information Section
/* =================================================================== */
.lf-item-info-2 {
    padding: 15px;
    text-align: left;
    background: #fff;
    flex-grow: 1; /* Takes up available space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Card Title */
.listing-preview-title {
    font-size: 16px;
    font-weight: 700;
    color: #242429;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-preview-title .verified-listing {
    margin-left: 5px;
    height: 16px;
    width: 16px;
    vertical-align: middle;
}

/* Hide tagline/subtitle */
.lf-item-info-2 h6 {
    display: none;
}

/* Location Info */
.lf-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lf-contact .mi.location_on {
    font-size: 16px;
    color: #28a745;
}

/* =================================================================== */
/* 5. Card Details Section (For Sale/Rent, Price, Specs)
/* =================================================================== */

/* Common style for all detail sections */
.listing-details-3 {
    padding: 0 15px; /* Consistent padding with info section */
    background: #fff;
}

.listing-details-3 ul.details-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping if needed */
    margin: 0;
    padding: 10px 0;
    list-style: none;
    border-top: 1px solid #f0f0f0;
}

.listing-details-3 ul.details-list li {
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.listing-details-3 ul.details-list li i {
    font-size: 16px;
    color: #28a745;
}

/* First Details Section (Specs like Year, Mileage, etc.) */
.listing-preview .c27-footer-section:first-of-type ul.details-list {
    justify-content: flex-start; /* Align specs to the left */
    gap: 15px; /* Add space between spec items */
}

/* Second Details Section (Price, Purpose) */
.listing-details-3 + .listing-details-3 ul.details-list {
    align-items: baseline; /* Align items to baseline for better look */
}

/* Style the "For Sale/Rent" text */
.listing-details-3 + .listing-details-3 li:first-child {
    font-weight: 500;
    color: #1a1a1a;
     background-color: unset !important; 
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
    margin-bottom: -20px;
}

/* Style the Price */
.listing-details-3 + .listing-details-3 li:last-child {
    font-size: 14px;
    font-weight: 700;
    color: #0fbf3e; /* Main green color for price */
        margin-left: -20px ;
}

/* =================================================================== */
/* 6. Card Footer (Author/Host Info)
/* =================================================================== */

.event-host.c27-footer-section {
    background-color: #fafafa;
    padding: 10px 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto; /* Pushes the footer to the bottom */
}

.event-host > a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.event-host .avatar img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.event-host .host-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.event-host .ld-info ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* =================================================================== */
/* 7. Responsive Adjustments
/* =================================================================== */
@media (max-width: 768px) {
    .grid-item {
        flex: 0 0 240px; /* Slightly smaller cards on mobile */
        width: 240px;
    }

    .lf-background {
        height: 130px;
    }

    .listing-preview-title {
        font-size: 15px;
    }

    .listing-details-3 + .listing-details-3 li:last-child {
        font-size: 0px !important;
    }
}



/* =================================================================== */
/* 8. our modifications
/* =================================================================== */

.no-logo.has-tagline.has-info-fields .lf-item-info-2 {
    transform: unset !Important;
}
 media="(max-width: 992px)" {
    .lf-item-container .lf-item-info-2, .lf-item-container.no-tagline.no-logo .lf-item-info-2 {
        transform: unset !Important;
    }
}
.lf-head, .lf-item-container .lf-item-info-2, .lf-item-info {
    will-change: unset !Important;
}
.lf-item-container .lf-item-info-2 {
    top: unset !Important;
    bottom: -1px;
    transform: unset !Important;
    transition: all .3s;
}
.lf-type-2 .lf-item-info-2 {
    color: #242429;
    background: #fff;
    left: 0;
    width: 100%;
    height: auto;
    padding: 5px 15px 1px;
    position: absolute;
    z-index: 9;
    transition: top .2s;
    -webkit-transform: unset !Important;
    text-align: left;
}
.lf-type-2 .lf-item-info-2 {
    color: #242429;
    background: #fff;
    left: 0;
    /* width: 100%; */
    /* height: auto; */
   position: unset !Important;
    z-index: 9;
    transition: top .2s;
    -webkit-transform: translateZ(0);
    text-align: left;
}

.listing-details-3 ul.details-list li {
        gap: 1px;
}
.listing-details-3 .details-list li span {
    margin-top: 0;
    overflow: unset;
    text-align: center;
    width: 100%;
    text-overflow: unset ! Important;
}
.listing-details-3 .details-list li {
    padding: 0px 0px 15px 0px !important;
    width: 25%;
    white-space: nowrap;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.listing-details-3 ul.details-list{
    padding: 5px 15px;
}
.lf-item{
    height: 200px;
}
.lf-head-btn.ad-badge {
    background-color: #0fbf3e87 !important;
    color: #ffbf00 !important;
    /* fill: orange; */
}
.listing-details-3 + .listing-details-3 li:last-child{
     padding-bottom: 0px !important;   
}
    

.lf-type-2 .lf-item {
    height: unset !important;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}
.custom-detail-row.location {
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1px;
    margin-bottom: 3px;
    margin-top: 8px;
}
.lf-item-info-2 h4{

    margin-bottom: 8px;
}
.lf-item-info-2>ul.lf-contact{
    overflow: hidden;
    padding-top: 0px;
    padding-bottom: 12px;
    margin-bottom: 0;
    list-style-type: none;
    padding-left: 0;
}
.listing-details .category-name{
    overflow: unset !important;
}


.venues-tab, .venue-ssubtab-buttons, .venue-ssubsubtab-buttons {
    display: none !important;
}